﻿using System;

namespace ConsoleApp4
{
    class Program
    {
        static void Main(string[] args)
        {
            //// 南昌工厂制作南昌的鸭脖和鸭架
            //AbstractFactory nanChangFactory = new NanChangFactory();
            //YaBo nanChangYabo = nanChangFactory.CreateYaBo();
            //nanChangYabo.Print();
            //YaJia nanChangYajia = nanChangFactory.CreateYaJia();
            //nanChangYajia.Print();

            //// 上海工厂制作上海的鸭脖和鸭架
            //AbstractFactory shangHaiFactory = new ShangHaiFactory();
            //shangHaiFactory.CreateYaBo().Print();
            //shangHaiFactory.CreateYaJia().Print();

            //// 湖南工厂制作湖南的鸭脖和鸭架
            //AbstractFactory hunanFactory = new HuNanFactory();
            //hunanFactory.CreateYaBo().Print(); 
            //hunanFactory.CreateYaJia().Print();

            //Console.Read(); 


            new Context(0).Print();
            new Context(1).Print();
            new Context(2).Print();
        }
    }
}
